package com.cq.music;

public class BleAdvertiseAbility {
    //    private class MyBleAdvertiseCallback extends BleAdvertiseCallback {
//        @Override
//        public void startResultEvent(int result) {
//            if (result == BleAdvertiseCallback.RESULT_SUCC) {
//                Logger.d("开始BLE广播成功  ");
//            }
//        }
//
//    }
////    创建广播数据
//    private BleAdvertiseData advertiseData = new BleAdvertiseData.Builder()
//        .addServiceData(SequenceUuid.uuidFromString(SERVICE_UUID),"12".getBytes(standardCharsets.UTF_8))
//        .addServiceUuid(SequenceUuid.uuidFromString(SERVICE_UUID))
//        .build();
////    设置广播参数
//    private BleAdvertiseSettings advertiseSettings = new BleAdvertiseSettings.Builder()
//        .setConnectable(true)
//        .setInterval(BleAdvertiseSettings.INTERVAL_SLOT_MIN)
//        .setTxPower(BleAdvertiseSettings.TX_POWER_DEFAULT)
//        .build();
//
////    获取BLE广播回调
//    private MyBleAdvertiseCallback advertiseCallback = new MyBleAdvertiseCallback();
////    获取BLE广播对象
//    private BleAdvertiser advertiser = new BleAdvertiser(this,advertiseCallback);
//    //开始BLE广播

}
